package com.zcf.controller;


import org.springframework.web.bind.annotation.CrossOrigin;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import com.zcf.common.json.Body;
import com.zcf.pojo.RoomsParam;
import com.zcf.service.RoomParamServiceImpl;
import com.zcf.vo.out.LayuiJson;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;

/**
 * <p>
 *  前端控制器
 * </p>
 *
 * @author ZhaoQi
 * @since 2019-03-18
 */
@CrossOrigin
@Controller
@RequestMapping("/roomParam")
@ResponseBody
public class RoomParamController {

	@Autowired
	RoomParamServiceImpl RoomParamServiceImpls;
	/**
	 * 获取房间信息
	 * @param user
	 * @return
	 */
	@PostMapping("getroominfo")
	public LayuiJson getroominfo(RoomsParam room){
		return RoomParamServiceImpls.getroominfo(room);
	}
	/**
	 * 后台获取房间列表
	 * @return
	 */
	@PostMapping("getrooms")
	public LayuiJson getrooms(RoomsParam room){
		return RoomParamServiceImpls.getrooms(room);
	}
	/**
	 * 获取已开房间
	 * @return
	 */
	@PostMapping("getopenroom")
	public Body getopenroom(){
		return RoomParamServiceImpls.getopenroom();
	}
	/**
	 * 获取扎金花已开房间
	 * @return
	 */
	@PostMapping("getZopenroom")
	public Body getZopenroom(){
		return RoomParamServiceImpls.getZopenroom();
	}
	
	
}

